sparse matrix representation using linked list